package com.shuiyun.chat.entity.message;

import com.shuiyun.chat.enums.MessageType;
import lombok.*;

/**
 * @program: chatServer
 * @description: 登录回应消息
 * @author: shuiyun
 * @create: 2021-05-12 22:00
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LoginResponseMessage extends Message{

    /**
     * 登录是否成功
     */
    private Boolean success;

    /**
     * 登录失败时消息提醒
     */
    private String message;

    @Override
    public int getMessageType() {
        return MessageType.LOGIN_RESPONSE_MESSAGE.getType();
    }
}
